// Tables
.wp-block-table table {
	@extend .table;
	@extend .table-bordered;
}

// Block Quotes
.wp-block-quote {
	@extend .blockquote;
	cite {
		@extend .blockquote-footer;
	}
}


figure.wp-block-image, // Image captions
.wp-block-image > figure // Alternate/classic editor image captions
{
	@extend .figure;
	display: block;
	img {
		@extend .figure-img;
	}
	figcaption {
		@extend .figure-caption;
	}
}

// Wide alignments and covers.
body.understrap-no-sidebar {
	.alignwide,
	.alignfull,
	.wp-block-cover.alignwide,
	.wp-block-cover.alignfull {
		margin: 0 calc(50% - 50vw);
		max-width: 100vw;
		width: 100vw;

		.wp-block-cover__inner-container {
			@include make-container();
			@each $breakpoint, $container-max-width in $container-max-widths {
				@include media-breakpoint-up($breakpoint, $grid-breakpoints) {
					max-width: $container-max-width;
				}
			}
		}
	}

	.alignwide,
	.wp-block-cover.alignwide {
		margin: 0 calc(50% - 45vw);
		max-width: 90vw;
		width: 100vw;
	}

	@media (max-width: 920px) {
		.alignwide,
		.wp-block-cover.alignwide {
			margin: 0 calc(50% - 48vw);
			max-width: 96vw;
			width: 100vw;
		}
	}
}

// Buttons
.wp-block-buttons {
	.wp-block-button {
		.wp-block-button__link {
			@if variable-exists('bootstrap4') {
				@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
			} @else {
				@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-border-radius);
			}
		}
		&:not(.is-style-outline) .wp-block-button__link {
			border: $btn-border-width solid transparent;
		}
	}
}
